package com.xquant.marketdata.marketdata.service.impl;

import com.github.pagehelper.PageInfo;
import com.xquant.marketdata.marketdata.mapper.BondMapper;
import com.xquant.marketdata.marketdata.service.BondService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Auther: B946
 * @Date: 23/12/2019 10:17
 * @Description:
 */
@Service
public class BondServiceImpl implements BondService {


    @Autowired
    private BondMapper bondMapper;

    @Override
    public PageInfo<Map>  queryBondInfoByPage(Map<String,Object> params){
        List<Map>   list = bondMapper.queryBondInfoByPage(params);
        return new PageInfo<Map>(list);
    }

    @Override
    public List<Map> queryBondInfoByPageList(Map<String, Object> params) {
        return bondMapper.queryBondInfoByPage(params);
    }

    @Override
    public PageInfo<Map>  queryBondPriceByPage(Map<String,Object> params){
        List<Map>   list = bondMapper.queryBondPriceByPage(params);
        return new PageInfo<Map>(list);
    }


}
